<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>
<script type="text/javascript">
	function minusOne(){
		var obj=$("#rnums");
		var n=parseInt(obj.val());
		if(n-1>0){
			obj.val(n-1);
		}
		
	}
	
	function addOne(){
		var obj=$("#rnums");
		var n=parseInt(obj.val());
		obj.val(n+1);
	}
	$(function(){
		$("#bookRoomForm").validate({
			rules : {
				member:{required : true,remote:'checkTicketLogin.htm'}
			},
			messages : {
				member:{required:"请登录"}
			}
		});
	});
</script>
    <!-- payway-->
<div class="tc_wrap">
    <a href="javascript:void(0)" class="btn_close">关闭</a>
        <div class="tc_infobox">
            <form action="toprobuy.htm" id="bookRoomForm" method="post">
				<div class="tc_hotel_wrap">
				  <p>您选择的游玩日期:<span class="date">${productPrice.spDate }</span></p>
				  <p><i>${product.name }</i>(<i class="clrf60">¥${productPrice.priceA }</i>)</p>
	              <p class="room_info">
	              		选择人数:
	                    <a href="javascript:void(0)" class="minus" onclick="minusOne();">减</a>
	                    <input name="count" class="nums" value="1" id="rnums" readonly="readonly"/>
	                    <a href="javascript:void(0)" class="add" onclick="addOne();">加</a>
	              </p>
	              <p>
	              	<input type="submit"  id="nextBtn" value="" class="next" style="cursor: pointer;"/>
	              	 <!-- <a href="javascript:void(0)" class="next" id="nextBtn">提交</a> -->
	              </p>
	            </div>
	            <input type="hidden" name="tid" id="tid" value="${product.id }"/>
      		    <input type="hidden" name=udate id="udate" value="${productPrice.spDate }"/>
      		    <input type="hidden" name="member" value="${onlineUser.member.id }"/>
           </form>
        </div>
</div>
<!-- payway--end-->